<?php
class DatabaseException extends Exception
{
	const ERROR_KEY_COUNT_NOT_EQUAL_TO_VALUE_COUNT_IN_INSERT_QUERY = 'Key count not equal to value count in insert query';
	const NO_KEY_COUNT_NOT_EQUAL_TO_VALUE_COUNT_IN_INSERT_QUERY = 1;
	
	const ERROR_NO_KEY_EXISTS_IN_INSERT_QUERY = 'There is no key exists in insert query';
	const NO_NO_KEY_EXISTS_IN_INSERT_QUERY = 1;
	
	const ERROR_NO_TABLE_EXISTS_IN_SELECT_QUERY = 'There is no table exists in select query';
	const NO_NO_TABLE_EXISTS_IN_SELECT_QUERY = 2;
	
	const ERROR_NO_CONDITION_EXISTS_IN_JOIN = 'There is no condition exists in join';
	const NO_NO_CONDITION_EXISTS_IN_JOIN = 3;
	
	const ERROR_NO_TABLE_EXISTS_IN_UPDATE_QUERY = 'Theris no table exists in update query';
	const NO_NO_TABLE_EXISTS_IN_UPDATE_QUERY = 4;
	
	const ERROR_NO_KEY_EXISTS_IN_UPDATE_QUERY = 'There is no key exists in update query';
	const NO_NO_KEY_EXISTS_IN_UPDATE_QUERY = 5;
	
	const ERROR_NO_TABLE_EXISTS_IN_DELETE_QUERY = 'There is no table exists in delete query';
	const NO_NO_TABLE_EXISTS_IN_UPDATE_QUERY = 6;
	
	const ERROR_IN_QUERY = 'Error in query';
	const NO_IN_QUERY = 7;

	public function __construct($message=null,$code=0,Exception $previous=null)
	{
		parent::__construct($message,$code,$previous);
		
	}
}
?>